//
//  GlobalToolFunctionDefine.swift
//  swift_learning
//
//  Created by aron on 2017/1/15.
//  Copyright © 2017年 arons. All rights reserved.
//

import UIKit

class GlobalToolFunctionDefine: NSObject {

}

// MARK: - ......::::::: 自定义的全局LOG方法 :::::::......
public func BMLOG(_ message: Any, file: String = #file, funcName: String = #function, line: Int = #line) {
    #if DEBUG
        let resultFile = (file as NSString).lastPathComponent;
        print("\(resultFile) ## \(funcName) # \(line):\(message)");
    #else
        print("==nothing==");
    #endif
}


public func BMRandColor() -> UIColor {
    return UIColor(red: (CGFloat(arc4random_uniform(255))/CGFloat(255.0)), green: (CGFloat(arc4random_uniform(255))/CGFloat(255.0)), blue: (CGFloat(arc4random_uniform(255))/CGFloat(255.0)), alpha: 1)
}


// MARK: - ......::::::: Gemogemy :::::::......

public func SCREEN_WIDTH() -> CGFloat {
    return UIScreen.main.bounds.size.width
}

public func SCREEN_HEIGHT() -> CGFloat {
    return UIScreen.main.bounds.size.height
}

public func DEFAULT_AVATAR_SMALL() -> UIImage {
    return UIImage(named: "avatar_default_small")!
}

public func DEFAULT_PLACEHOLDER_IMAGE() -> UIImage {
    return UIImage(named: "empty_picture")!
}

